package com.example.crm_system.mapper;

import com.example.crm_system.entity.Business;
import com.example.crm_system.entity.Params;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BusinessMapper {

    // 插入 bno, description
    void insert(Business business);

    // 修改business
    void update(Business business);

    // 删除business
    void delete(Integer bno);

    // 查询所有business
    List<Business> selectAll();

    // 通过bno查询business
    List<Business> selectByBno(Integer bno);

    List<Business> searchBusiness(@Param("params") Params params);
}
